package cn.stylefeng.guns.modular.utils;

import cn.stylefeng.guns.base.auth.context.LoginContextHolder;
import cn.stylefeng.guns.base.auth.model.LoginUser;

public class UserMessage {

    public static long getUserId(){
        /**
         * 得到当前登陆者的信息
         */
        LoginUser user = LoginContextHolder.getContext().getUser();
        long userId= user.getId();

        return userId;
    }
}
